<@s.url id="deleteurl" action="${parameters.grid}-delete" namespace="/widgets" />
<script>
$(function(){
	$("#${parameters.grid}-delete").click(function(){
	    var selectedId = $("#${parameters.grid}").jqGrid('getGridParam','selrow');
		$("#${parameters.grid}").trigger("grid-delete", {url: "${deleteurl}"});
	});
});
</script>